export enum CardType {
  monster = 'monster',
  spell = 'spell',
  trap = 'trap',
  tc = 'tc',
  xg = 'xg',
  ys = 'ys',
  rh = 'rh',
  tt = 'tt',
  cl = 'cl',
  lj = 'lj',
  lb = 'lb',
  tk = 'tk',
}

export interface CardColorItem {
  color: string;
  label: string;
  value: {
    type: CardType;
    type2?: CardType;
    type3?: CardType;
  }
}

export const CardColor: CardColorItem[] = [
  {
    color: '#008b74',
    label: '魔法',
    value: {
      type: CardType.spell,
    }
  },
  {
    color: '#b12e8b',
    label: '陷阱',
    value: {
      type: CardType.trap,
    }
  },
  {
    color: '#be704a',
    label: '效果',
    value: {
      type: CardType.monster,
      type2: CardType.xg,
    }
  },
  {
    color: '#d8bd76',
    label: '通常',
    value: {
      type: CardType.monster,
      type2: CardType.tc,
    }
  },
  {
    color: '#3f78bf',
    label: '仪式',
    value: {
      type: CardType.monster,
      type2: CardType.ys,
    }
  },
  {
    color: '#7a3e98',
    label: '融合',
    value: {
      type: CardType.monster,
      type2: CardType.rh,
    }
  },
  {
    color: '#ddd',
    label: '同调',
    value: {
      type: CardType.monster,
      type2: CardType.tt,
    }
  },
  {
    color: 'black',
    label: '超量',
    value: {
      type: CardType.monster,
      type2: CardType.cl,
    }
  },
  {
    color: '#284a78',
    label: '连接',
    value: {
      type: CardType.monster,
      type2: CardType.lj,
    }
  },
  {
    color: '#7b716f',
    label: '衍生物',
    value: {
      type: CardType.monster,
      type2: CardType.tk,
    }
  },
];